<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    if (localStorage.visitsSum){
        localStorage.visitsSum = localStorage.visitsSum*1+1;
    }else {
        localStorage.visitsSum = 1;
        document.write("网站总访问数"+localStorage.visitsSum+"<br/>")
    }
</script>
</html>